package org.apache.rocketmq.console.script.service;

import java.util.List;

import org.apache.rocketmq.console.script.model.EnvInfo;
import org.apache.rocketmq.console.script.model.EnvironDic;
import org.apache.rocketmq.console.script.model.RegionInfo;
import org.apache.rocketmq.console.script.model.ScriptInfo;
import org.apache.rocketmq.console.script.model.SysInfo;

public interface EnvService {
	public List<ScriptInfo> findAllScript();

	public List<SysInfo> findAllSysInfo();

	public List<EnvironDic> findAllEnvironDic();

	public EnvironDic findEnvironDicByRegionCodeAndEnviroCode(String regionCode, String enviroCode);

	public EnvironDic findOneEnvironDic(int id);

	public void save(ScriptInfo entity);

	public List<EnvironDic> findAllEnvironDicByRegionCode(String regionCode);

	public ScriptInfo findScriptInfoById(int id);

	public String findSysNameBySysCode(String code);

	public List<EnvironDic> findAllDic();

	public EnvironDic findOneByNameserveLike(String nameserve);

	List<RegionInfo> findAllRegionInfo();

	RegionInfo findRegionInfoByCode(String regionCode);

	List<EnvInfo> findAllEnvInfo();

	public boolean saveEnvironDic(EnvironDic entity);

	public boolean saveRegionInfo(RegionInfo entity);

	public String findReginNameByRegionCode(String code);

	public String findEnvNameByEnvCode(String code);
}
